<local:DocumentBase x:Class="WPFExcelReport.TYTRPWV03"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBBST"
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM"
                    xmlns:WG="clr-namespace:WPFExcelReport;assembly=TWGBST"
                    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWBDAT"
                    xmlns:WDK="clr-namespace:WPFExcelReport;assembly=TWDECK"
                    xmlns:MU="clr-namespace:WPFExcelReport;assembly=TABAUFM" 
                    xmlns:VVT="clr-namespace:WPFExcelReport;assembly=TVVTLIEF"
                    xmlns:VV="clr-namespace:WPFExcelReport;assembly=TVVLIEF"   
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS" 
                    xmlns:VR="clr-namespace:WPFExcelReport;assembly=TVRKOPF"  
                    xmlns:VRP="clr-namespace:WPFExcelReport;assembly=TVRPOS"
                    xmlns:ZB="clr-namespace:WPFExcelReport;assembly=TVKZUAB"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"   
                     xmlns:me="clr-namespace:WPFExcelReport"
                    FontSize="14"
                    Name="TV"
                    Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </local:DocumentBase.Resources> 
    <TabControl>
        <TabItem Header="销售单">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="1*" />
                    <RowDefinition   Height="Auto" />
                </Grid.RowDefinitions>
                <Grid Grid.Row="1" Grid.Column="0"   Name="ZoneVK">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="2*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <VKK:TVKKVV Grid.Row="0" Grid.Column="0" 
                                Name="cVK04"  MinWidth="200" MinHeight="50" 
                            IsZoneWBFull="{Binding IsWBFull,ElementName=TV}"
                                IsOrder="False"  />
                    <VRP:TSVR05  Grid.Row="1" Grid.Column="0" 
                                 VKP="{Binding AUF,ElementName=cVK05}" 
                                 Visibility="Collapsed"/>
                    <VKP:TVKPVV Grid.Row="2" Grid.Column="0" Name="cVK05"  MinWidth="200" MinHeight="50"
                         IsVV="False" 
                        dwVKK="{Binding dwVKK,ElementName=cVK04}"   
                        />
                    <StackPanel Grid.Row="0" Grid.RowSpan="3" Grid.Column="1">
                        <Grid Margin="10,0,0,0" Visibility="Collapsed">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Button Click="btnPrintPK_Click" Height="20" Margin="20,0,0,0" Width="20" >
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Print.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Grid.Column="1" FontSize="18" >打印提货单</TextBlock>
                            <TextBox Grid.Column="2" Name="txtLang" CharacterCasing="Upper">CN</TextBox>
                        </Grid>
                        <VVT:TVVTLIEF  IsWBREQ="True" Name="cVVT" VerticalAlignment="Top" 
                                   VKP="{Binding AUF,ElementName=cVK05}" />
                        <VV:TVVLIEF   Name="cSVV"
                                      Visibility="Collapsed"
                                  VKP="{Binding VKP,ElementName=cVVT}"
                                  ORDERNUM="{Binding LIEFSCH,ElementName=cVK05}"
                               />
                    </StackPanel>
                </Grid>
                <WrapPanel  Grid.Row="2" Name="ZoneWB">
                    <TextBlock Text="任意选择一行销售单，选择发货单号码，然后到布卷列表界面"/>
                </WrapPanel>
              
            </Grid>
        </TabItem>
        <TabItem Header="布卷列表">
            <VVT:TWV03WB06 Grid.Row="1" 
                           IsCanNew="True"
                                   EXAUF="{Binding KEY,ElementName=cVVT}"
                                    IsZoneWBFull="{Binding IsWBFull,ElementName=TV}"
                                   />
        </TabItem>
        <TabItem Header="装箱信息" Visibility="Collapsed">
            <WB:TWZ04 Name="cWZ04" Grid.Row="0"  LO="01" LB="KO" LP="        " 
                      IsBusy="{Binding IsBusy,ElementName=TV}"
                      IsCanNew="True"   
                       IsZoneWBFull="{Binding IsWBFull,ElementName=TV}"
                      SLO="{Binding LO,ElementName=cWB06}" SLB="{Binding LB,ElementName=cWB06}"
                       ORDERNUM="{Binding KEY,ElementName=cVVT}"
                      IsPage="True"
                      Rows="50"
                      FTAUTOSUM="True"
                      SKEY1="WBBART"
                      KEY1="WBBISTKLG"/>
        </TabItem>
        <TabItem Header="品种">
            <WS:TWASTAMM Grid.Row="1"  Grid.Column="0" Name="cWS" 
                             WART="{Binding WAART,ElementName=cWB06}" 
                             Width="Auto" MinWidth="300" />
        </TabItem>
       
    </TabControl>
</local:DocumentBase>
    
